//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by Fernflower decompiler)
//

package com.common.mybaits;

import com.common.base.Pager;
import org.apache.ibatis.reflection.factory.DefaultObjectFactory;

import java.util.List;

public class PagerObjectFactory extends DefaultObjectFactory {
    private static final long serialVersionUID = 3963031299778136554L;

    public PagerObjectFactory() {
    }

    public <T> boolean isCollection(Class<T> type) {
        return type == Pager.class ? true : super.isCollection(type);
    }

    public <T> T create(Class<T> type) {
        return type == Pager.class ? (T) PagerContextHolder.get() : (T)this.create(type, (List)null, (List)null);
    }
}
